package com.mjh.zhujianju.dao.set;

import com.livew.framework.base.dao.BaseMapper;
import com.mjh.zhujianju.model.set.AnnouncementEO;
import com.mjh.zhujianju.vo.set.AnnouncementVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AnnouncementMapper extends BaseMapper<AnnouncementEO> {
    /**
     * wx-首页展示，只需一条
     * @return
     */
    List<AnnouncementEO> queryAnnouncementNewOne();

    /**
     * wx-公告列表
     * @return
     */
    List<AnnouncementVO> queryAnnouncementList();

    /**
     * wx-公告详情
     * @param id
     * @return
     */
    AnnouncementVO queryAnnouncementInfo(Long id);
}